<template>
  <div class="home">
    首页
    <!-- <van-swipe class="my-swipe" :autoplay="3000">
      <van-swipe-item v-for="(image, index) in images" :key="index">
        <img v-lazy="image" />
      </van-swipe-item>
    </van-swipe> -->
  </div>
</template>

<script>
// @ is an alias to /src
import Vue from "vue"
import { Lazyload } from 'vant';

Vue.use(Lazyload);
export default {
  data() {
    return {
      images: [
        "https://img.yzcdn.cn/vant/apple-1.jpg",
        "https://img.yzcdn.cn/vant/apple-2.jpg",
      ],
      lazyComponent: true,
    };
  },
  name: "Home",
  components: {},
};
</script>
<style>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}
</style>